import { Emits, Props } from './interfaces'

// 操作
export const useHandler = (emit: Emits, props: Props) => {
  // 点击事件
  const onClick = (e: MouseEvent) => {
    if (!props.disabled) {
      emit('click', e)
    }

  }

  return { onClick }
}
